package com.example.shop.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.Hidden;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @projectName: shop
 * @package: com.example.shop.domain
 * @className: Agreement
 * @author: Liqian
 * @description: TODO
 * @date: 2024/5/6 14:20
 * @version: 1.0
 */
@Data
@TableName("t_agreement")
public class Agreement {


    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer goodsId;


    @Hidden
    private Integer userIn;

    @Hidden
    private Integer userOut;


    private BigDecimal charge;



    private Integer status;


    @Hidden
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Hidden
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String userInName;

    @TableField(exist = false)
    private String userOutName;



    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String price;
    @TableField(exist = false)
    private String unit;
    @TableField(exist = false)
    private String img;
    @TableField(exist = false)
    private String remark;



}